package edu.nf.webapp.exception;

/**
 * @Author czl
 * @Date 2024-05-21
 */
public class LoginException extends RuntimeException {
    /**
     * 业务异常状态码
     */
    private final Integer errorCode;

    public LoginException(Integer errorCode, String message) {
        //将异常信息传给父类
        super(message);
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }
}
